package com.example.aboutwork.reflect;


import org.springframework.core.annotation.AnnotationUtils;

import java.util.Arrays;
import java.util.Objects;

@EnumAnno
public enum SexEnum {
    
    MALE,
    FEMALE;

    public static void main(String[] args) {
        EnumAnno annotation = AnnotationUtils.findAnnotation(SexEnum.class, EnumAnno.class);
        if(Objects.isNull(annotation)) {
            Enum.class.isAssignableFrom(SexEnum.class);
            SexEnum[] enumConstants = SexEnum.class.getEnumConstants();
            System.err.println(Arrays.toString(enumConstants));
        }

    }
}
